home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
fractal
/
kaos.lha
/
complib
/
dvector.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-01-26
|
237 b
|
13 lines
/*
### 1-d array memory allocation ###
*/
double *dvector(nl,nh)
int nl,nh;
{
double *v;
v = (double *)malloc((unsigned) (nh - nl + 1) * sizeof(double));
if (!v) system_mess_proc(1,"dvector: allocation failure!");
return(v - nl);
}